// 公共样式
// 去除table中的form组件的margin-bottom
.el-table .el-table__row .el-form-item {
    margin-bottom: 0;
  }
  .el-table td,
  .el-table th {
    padding: 2px 0;
  }
  
  .el-table {
    ::-webkit-scrollbar {
      width: 6px;
      height: 12px;
      opacity: 0.2;
    }
    // ::-webkit-scrollbar-thumb:vertical {
    //   height: 12px;
    //   background-color: #4787ff;
    //   -webkit-border-radius: 5px;
    // }
    ::-webkit-scrollbar-thumb:horizontal {
      width: 6px;
      background-color: #4787ff;
      -webkit-border-radius: 5px;
    }
  }
  
  .el-table-full {
    width: 100%;
    display: flex;
    flex-direction: column;
    .el-table__body-wrapper {
      flex-grow: 1;
    }
  }
  .base-content {
    width: 100%;
    height: calc(100% - 6px);
    //padding: 16px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 6px;
    // overflow-y: auto;
    box-shadow: 0 4px 10px 4px #e4e7f0;
    position: relative;
    .basic-info {
      width: 100%;
      height: 100%;
      background: #fff;
      padding: 10px;
      box-sizing: border-box;
      position: relative;
      overflow: scroll;
      display: flex;
      flex-direction: column;
      .basic-search {
        flex: 0 0 auto;
      }
      // 新版统一
      .main-layout {
        display: inline-flex;
        flex: 1;
        overflow-y: auto;
        .sideBar-left {
          width: 240px;
          height: 100%;
          overflow: auto;
          display: flex;
          flex-shrink: 0;
          flex-direction: column;
          .sideBar-title {
            width: 100%;
            flex: 0 0 auto;
            font-size: 16px;
            font-weight: bold;
            color: #666666;
            padding: 10px;
            box-sizing: border-box;
          }
          .customer-tree {
            flex: 1;
            overflow: auto;
            background: #f8fbff;
            .el-tree-node__content {
              height: 40px;
              line-height: 40px;
              &:hover {
                color: #4787ff;
                background: rgba(47, 113, 245, 0.2);
              }
              .el-tree-node__label {
                font-size: 12px;
              }
              .el-tree-node__expand-icon {
                font-size: 16px;
                font-weight: bold;
                color: #999;
              }
              .is-leaf {
                color: transparent;
              }
            }
            .is-current {
              & > .el-tree-node__content {
                .el-tree-node__label {
                  color: #409eff;
                  font-weight: 600;
                }
                .el-tree-node__expand-icon {
                  color: #409eff;
                }
                .is-leaf {
                  color: transparent;
                }
              }
            }
          }
        }
        .sideBar-right {
          flex: 1;
          overflow: scroll;
          .child-table {
            height: calc(100% - 50px);
            .el-table {
              width: 100%;
              display: flex;
              flex-direction: column;
              .el-table__body-wrapper {
                flex-grow: 1;
              }
            }
          }
        }
      }
      // 兼容旧版
      .main-content {
        flex: 1;
        overflow-y: auto;
      }
      .el-table {
        overflow-y: scroll;
      }
      .el-table::before {
        content: none;
      }
    }
  
    .el-table--small {
      th {
        color: #4e4e4e;
        font-weight: 600;
        padding: 12px 0;
        border-bottom: 1px solid #ebeef5;
      }
      td {
        color: #646464;
        padding: 10px 0;
        border-bottom: 1px solid #ebeef5;
      }
      tr:hover {
        td {
          background: #c1d6ff;
        }
      }
      .base-table-operation {
        width: 100%;
        display: flex;
        align-items: center;
        .el-link {
          margin-right: 12px;
        }
      }
    }
    .el-form-item--small {
      margin-right: 50px;
    }
  
    .base-content-operate {
      display: flex;
      align-items: center;
    }
    .base-export-button {
      background: #44c68f;
      border-color: #44c68f;
      color: #fff;
    }
    .base-disabled-button {
      background: #00c9d1;
      border-color: #00c9d1;
      color: #fff;
    }
  
    .el-table {
      // margin-top: 18px;
      // height: calc(100% - 151px);
    }
    .el-table__header {
      th {
        background: #f1f8ff;
      }
    }
  
    .is-checked,
    .is-indeterminate {
      .el-checkbox__inner {
        background: #4787ff;
        border-color: #4787ff;
      }
    }
  
    .el-table--border::after,
    .el-table--group::after,
    .el-table::before {
      background-color: #ebeef5;
    }
  
    .el-link {
      font-size: 12px;
    }
    .el-link.is-disabled {
      color: #999999;
    }
  
    .base-content-table-divider {
      vertical-align: sub;
      background: #d3d7dd;
    }
  }
  
  // 共用样式Dialog
  .base-dialog {
   
    .el-table {
      margin-top: 18px;
      height: calc(100% - 170px);
    }
    .el-table__header {
      th {
        background: #f1f8ff;
      }
    }
    .el-dialog__header {
      font-size: 20px;
      font-weight: 400;
      color: #232638;
      text-align: center;
      border-bottom: 1px #ebeef5 solid;
      padding: 26px 0 19px;//上边距26 左右0 下19px
    }
    .el-dialog__body {
      height: 471px;
      padding: 26px 20px;
      position: relative;
      overflow: scroll;
    }
    .el-dialog__footer {
      // margin-top: 32px;
      border-top: 1px #ebeef5 solid;
      padding: 18px;
    }
    .base-dialog-footer {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      &:first-child button {
        margin-left: 30px;
      }
      .el-button {
        width: 70px;
      }
    }
    .el-icon-close {
      font-weight: bold;
    }
    .relay-only-value {
      width: 100%;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .base-dialog-loading {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.9);
    }
    .el-select {
      width: 100%;
    }
    .el-dropdown {
      width: 100%;
    }
  }
  .base-dialog--small {
 
    .el-table {
      margin-top: 18px;
      height: calc(100% - 170px);
    }
    .el-table__header {
      th {
        background: #f1f8ff;
      }
    }
    .el-dialog__header {
      font-size: 20px;
      font-weight: 400;
      color: #232638;
      text-align: center;
      border-bottom: 1px #ebeef5 solid;
      padding: 26px 0 19px;//上边距26 左右0 下19px
    }
    .el-dialog__body {
      height: 288px;
      padding: 26px 50px;
      position: relative;
      overflow: scroll;
    }
    .el-dialog__footer {
      // margin-top: 32px;
      border-top: 1px #ebeef5 solid;
      padding: 18px;
    }
    .base-dialog-footer {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      &:first-child button {
        margin-left: 30px;
      }
      .el-button {
        width: 70px;
      }
    }
    .el-icon-close {
      font-weight: bold;
    }
    .relay-only-value {
      width: 100%;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .base-dialog-loading {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.9);
    }
    .el-select {
      width: 100%;
    }
    .el-dropdown {
      width: 100%;
    }
  }
  
  .el-message-box__container {
    padding: 0 30px;
  }
  
  .base-pipeline-layout {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    .el-form-item {
      width: 50%;
    }
    .el-form-item__content {
    }
  }
  .el-switch {
    height: 33px;
  }
  
  .el-switch.is-checked .el-switch__core {
    background: #4787ff;
  }
  
  // tree点击激活样式
  .customer-tree .is-current > .el-tree-node__content .custom-tree-node {
    color: #409eff;
    font-weight: 600;
  }
  
  // 流程
  .process-node-item {
    cursor: move;
    width: 100px;
    height: 60px;
    svg {
      width: 100%;
      height: 100%;
    }
  }
  
  /*!*滚动条初始化*!*/
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    opacity: 0.2;
  }
  
  ::-webkit-scrollbar-track-piece {
    -webkit-border-radius: 5px;
    opacity: 0.2;
  }
  
  ::-webkit-scrollbar-thumb:vertical {
    height: 10px;
    background-color: #d3d4d5;
    -webkit-border-radius: 5px;
  }
  
  // ::-webkit-scrollbar-thumb:vertical:hover {
  //   background-color: #a2a3a5;
  // }
  
  ::-webkit-scrollbar-thumb:horizontal {
    width: 6px;
    background-color: #d3d4d5;
    -webkit-border-radius: 5px;
  }
  
  // ::-webkit-scrollbar-thumb:horizontal:hover {
  //   background-color: #a2a3a5;
  // }
  .el-message-box {
    .el-message-box__content {
      padding: 24px 0;
    }
    button:nth-child(2) {
      margin-left: 20px;
    }
  }
  
  label {
    font-weight: 500;
  }
  
  .el-message-box--center {
    padding-bottom: 0;
  }
  .el-message-box__title {
    font-size: 16px;
    color: #4e4e4e;
    font-weight: bold;
  }
  .el-message-box--center .el-message-box__btns {
    padding: 15px;
    .el-button--primary {
      background-color: #f56c6c;
      border-color: #f56c6c;
    }
  }
  .el-message-box--center .el-message-box__header {
    padding-top: 15px;
  }
  
  .avatar-popover {
    padding: 0;
    min-width: 180px;
  }
  